import request from '@/utils/request'
import qs from 'qs'

export const getProductBarcodeDetail = (data) => {
  const querydata = qs.stringify(data)
  return request({
    url: `/wms-service/app/productBarcode/detail?${querydata}`,
    method: 'get'
  })
}
export const getConsumablesRecordList = (data) => {
  const querydata = qs.stringify(data)
  return request({
    url: `/wms-service/app/consumablesRecord/list?${querydata}`,
    method: 'get'
  })
}
export const consumeTraceStorage = (row) => {
  return request({
    url: '/wms-service/app/consumablesRecord/submit',
    method: 'post',
    data: row
  })
}

export const consumeTraceUpdate = (row) => {
  return request({
    url: '/wms-service/app/consumablesRecord/update',
    method: 'post',
    data: row
  })
}

export const getConsumeTraceInfo = (params) => {
  return request({
    url: '/wms-service/app/consumablesRecord/details',
    method: 'get',
    params
  })
}